package de.tum.beilmeiner.im.client.view;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

import de.tum.beilmeiner.im.client.controller.LoginWindowController;
import de.tum.beilmeiner.im.shared.model.UUID;

public class LoginWindow extends VerticalPanel{

	private Button loginBtn = null;
	private TextBox userNameTxt = null;
	private PasswordTextBox passwordTxt = null;
	
	public LoginWindow()
	{
		loginBtn = new Button("Login");
		userNameTxt = new TextBox();
		userNameTxt.setText("franz");
		passwordTxt = new PasswordTextBox();
		passwordTxt.setText("password");
		this.add(userNameTxt);
		this.add(passwordTxt);
		this.add(loginBtn);
	}
	


	public TextBox getUserNameTxt() {
		return userNameTxt;
	}



	public void setUserNameTxt(TextBox userNameTxt) {
		this.userNameTxt = userNameTxt;
	}



	public PasswordTextBox getPasswordTxt() {
		return passwordTxt;
	}



	public void setPasswordTxt(PasswordTextBox passwordTxt) {
		this.passwordTxt = passwordTxt;
	}



	public void addLoginButtonListener(LoginWindowController loginWindowController) {
		loginBtn.addClickHandler(loginWindowController);
	}


}
